// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

//搭建vuex的基本环境
import Vuex from "vuex";
Vue.use(Vuex)

//创建仓库
const store = new Vuex.Store({
  //state:仓库中存放的数据
  state:{
    count:0,
    count2:{
      flag:1
    }
  }
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: { App },
  template: '<App/>',
  store
})
